import { createRouter, createWebHashHistory } from 'vue-router'

import MyHome from "./components/MyHome.vue";
import MyMovie from "./components/MyMovie.vue";
import MyAbout from "./components/MyAbout.vue";

const router = createRouter({
    history:createWebHashHistory(),
    linkActiveClass:'router-active',
    routes:[
        {path:'/',component:MyHome},
        {path:'/home',component:MyHome},
        {path:'/movie',component:MyMovie},
        {path:'/about',component:MyAbout},
        {path:'/movie/:id',name:'mov',component:MyMovie,props:true}
    ]
})

export default router